<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org">
<head>
    <meta charset="UTF-8">
    <link th:href="@{/css/bootstrap.min.css}" type="text/css" rel="stylesheet"/>
    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
    <script th:src="@{/js/jquery.md5.js}" type="text/JavaScript"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery.validate.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/layer/layer.js}"></script>
    <title>商品列表</title>
</head>
<body>
    <div class="container">
        <div class="row clearfix">
            <div class="col-md-6 column">
            </div>
            <div class="col-md-6 column">
            </div>
        </div>
        <div class="row clearfix">
            <div class="col-md-12 column">
                <h3 class="text-center">
                    秒杀商品列表
                </h3>
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <td>商品名称</td>
                        <td>商品图片</td>
                        <td>商品原价</td>
                        <td>秒杀价</td>
                        <td>库存数量</td>
                        <td>详情</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="goods,goodStat:${goodsList}">
                        <td th:text="${goods.goodsName}"></td>
                        <td><img th:src="@{${goods.goodsImg}}" width="100" height="100"></td>
                        <td th:text="${goods.goodsPrice}"></td>
                        <td th:text="${goods.seckillPrice}"></td>
                        <td th:text="${goods.stockCount}"></td>
                        <td><a th:href="'/goods/toDetail/'+${goods.id}">详情</a></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</body>
</html>